lib: Change ot_util_variant_map helpers to consistently sink refs
authorColin Walters <walters@verbum.org>
Wed, 1 Jun 2016 13:35:47 +0000 (09:35 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 1 Jun 2016 15:02:41 +0000 (15:02 +0000)
commitf725d39f111bd0d362a583c3a4902e3194fd74d8
tree88d81385020b87a243a1449f019952e36b85c0e0
parenta189b19fd000f83b2bbd065e0dd47ee18f5c3f50
lib: Change ot_util_variant_map helpers to consistently sink refs

This is similar to changes Krzesimir has been doing recently - we
really don't need the ergonomics of floating refs since we have
autocleanups.

We should continue to change most of our code to sink refs.

Specifically here it was pretty broken that the `_map()` API was
sinking but the other two weren't, and this broke some refactoring I
was trying to do later.

Closes: #317
Approved by: jlebon
src/libostree/ostree-repo-static-delta-core.c
src/libotutil/ot-variant-utils.c